import js from '@eslint/js'
import globals from 'globals'

export default [
    js.configs.recommended,
    {
        files: ['**/*.js'],
        languageOptions: {
            ecmaVersion: 'latest',
            sourceType: 'module',
            globals: {
                ...globals.browser
            }
        },
        rules: {
            'eqeqeq': 'warn',
            'no-unused-vars': ['warn', {
                vars: 'local',
                args: 'none'
            }],
            'no-undef': 'warn',
            'no-useless-escape': 'warn',
            'no-empty': 'off',
            'brace-style': ['error', '1tbs', {allowSingleLine: false}]
        }
    }
]
